<%@ Control Language="vb" AutoEventWireup="false" Explicit ="true"  codefile="View.ascx.vb" Inherits="NVPortal.Modules.NVNews.View" %>
<style type="text/css">
.NewCatHeader {height: 34px; background: url('/Portals/_default/Skins/MinimalExtropy/images/bread_bg.png') repeat-x; text-align: center; color: White;}
</style>
<table cellpadding="0" cellspacing="0" style="width: 100%" align="center">
    <tr>
        <td style="padding: 10px;">
                    <asp:LinkButton id="lbtAddTop" runat="server" Font-Bold="True"><img src="/images/Athemmoi.jpg" alt="" style="border: 0px" /></asp:LinkButton>
        </td>
    </tr>
    <tr><td>
    <asp:DataGrid DataKeyField ='CategoryId' id="drgViewData" runat="server" 
            CellPadding="4" AutoGenerateColumns="False" Width="100%" BackColor="White" 
            BorderColor="#CC9966" BorderStyle="None" BorderWidth="1px">
	    <FooterStyle BackColor="#FFFFCC" ForeColor="#330099" />
        <SelectedItemStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="#663399" />
        <PagerStyle BackColor="#FFFFCC" ForeColor="#330099" HorizontalAlign="Center" />
        <ItemStyle BackColor="White" ForeColor="#330099" />
	<Columns>
		<asp:BoundColumn DataField="categoryname" HeaderText="T&#234;n thư mục"></asp:BoundColumn>
        <asp:TemplateColumn HeaderText="Trạng th&#225;i">
            <ItemTemplate>
                <asp:Label ID="Label1" runat="server" Text='<%# iif(DataBinder.Eval(Container.DataItem, "isactive")="True","Hiển thị","Ẩn") %>'></asp:Label>
            </ItemTemplate>
        </asp:TemplateColumn>
        <asp:TemplateColumn HeaderText="Thứ tự">
            <ItemTemplate>
                <asp:TextBox ID="txtOrderNumber" Width="40" Text ='<%# DataBinder.Eval(Container.DataItem,"OrderNumber") %>' runat="server"></asp:TextBox>
            </ItemTemplate>
        </asp:TemplateColumn>
        <asp:TemplateColumn HeaderText="Sửa">
			<ItemTemplate>
				<asp:HyperLink id="Hyperlink1" NavigateUrl='<%# "/TabID/" & tabid & "/view/edit/ItemID/" & DataBinder.Eval(Container.DataItem,"categoryid") & "/" & ReplaceChuoi(DataBinder.Eval(Container.DataItem,"categoryname")) & ".aspx" %>' runat="server" >
					<asp:Image id="editLinkImage" ImageUrl="~/images/edit.gif" AlternateText="Edit" Runat="server" />
				</asp:HyperLink>
			</ItemTemplate>
		</asp:TemplateColumn>
	</Columns>
	    <HeaderStyle CssClass="NewCatHeader" />
</asp:DataGrid></td></tr>
    <tr><td style="padding: 10px;">
        <table cellpadding="0" cellspacing="0">
            <tr>
                <td><asp:LinkButton id="lbtAddBottom" runat="server" Font-Bold="True"><img src="/images/Athemmoi.jpg" alt="" style="border: 0px" /></asp:LinkButton></td>
                <td width="10"></td>
                <td><asp:LinkButton id="lbtUpdateOrder" runat="server" Font-Bold="True"><img src="/images/Acapnhatthutu.jpg" alt="" style="border: 0px" /></asp:LinkButton></td>
            </tr>
        </table>
    </td></tr>
</table>
